const TOKEN_KEY="token"
const ACTIVE_PATH="active_key"
const USER_NAME="username"
const USER_ID="userId"
const EXP_TIME="expTime"
export function getToken(){
    return sessionStorage.getItem(TOKEN_KEY);
}

export function setToken(token){

    sessionStorage.setItem(TOKEN_KEY,token);
}
export function clearToken(){
    sessionStorage.clear();
}
export function getexpTime(){
    return sessionStorage.getItem(EXP_TIME);
}

export function setexpTime(expTime){

    sessionStorage.setItem(EXP_TIME,expTime);
}

export function setUserName(username){
    sessionStorage.setItem(USER_NAME,username);
}
export function getUserName(){
    return sessionStorage.getItem(USER_NAME);
}

export function setUserId(userId){
    sessionStorage.setItem(USER_ID,userId);
}
export function getUserId(){
    return sessionStorage.getItem(USER_ID);
}

export function getActivePath(){
    return sessionStorage.getItem(ACTIVE_PATH);
}

export function setActivePath(path){
    sessionStorage.setItem(ACTIVE_PATH, path);
}
